package com.zzh.net.test;

import com.zzh.net.Net;
import com.zzh.net.bean.ResponseBean;
import com.zzh.net.net.NetObserver;

import io.reactivex.disposables.Disposable;

/**
 * @author zhangzhihao
 * @email zhangzhihao@gongjiangren.net
 * @date 2020-08-29
 * @desc
 */
public class Demo extends BaseDemo  {

    public void get(){
        Net.bind(getDemoServerInstace().get("create"), new NetObserver<ResponseBean>(){
            @Override
            public void onSubscribe(Disposable d) {
                super.onSubscribe(d);
            }

            @Override
            public void onNext(ResponseBean value) {
                super.onNext(value);
            }

            @Override
            public void onComplete() {
                super.onComplete();
            }

            @Override
            public void onError(Throwable e) {
                super.onError(e);
            }
        });
    }







}

